/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '../../assets/styles/base/_colors.scss';
@import '../../assets/styles/base/_variables.scss';

identity {
    display: flex;
    width: 100%;

    .main-view {
        overflow-y: auto;
        display: flex;
        flex-direction: column;

        .network-name {
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-right: $space-medium;
        }

        .selected-border {
            width: $border-width-large;
            margin-right: $space-medium;
        }

        .identity-title {
            display: flex;
            padding: $space-smedium;
            padding-left: 0px;
            padding-right: $space-medium;
            margin-top: $space-medium;
            & > * {
                font-weight: bold;
            }
        }

        .id {
            flex-basis: 48%;
        }

        .cell-24 {
            flex-basis: 24%;
        }

        .identity {
            background-color: $white;
            box-shadow: 0 2px 5px -1px $fifth-highlight;
            margin-bottom: $space-smedium;
            display: flex;
            padding: 0px;
            padding-right: $space-medium;
            height: 50px;
            line-height: 50px;
            cursor: default;
            overflow: hidden;
            border-radius: $border-width-medium;

            &:hover {
                .actions {
                    display: block;
                }
            }

            .selected-border--selected {
                background-color: $second-highlight;
            }

            .actions {
                display: none;
                text-align: right;
            }
        }

        i {
            color: $primary-text;
        }
    }

    // TODO This should be a common style (see also .registry button)
    button {
        box-shadow: 0 2px 5px -1px $fifth-highlight;

        &.secondary {
            border-color: $white;
        }
    }
}
